import { defineStore } from "pinia";

export const useUserStore = defineStore("user", {
  state: () => ({
    count: 1,
    username: "",
    isLoggedIn: false,
    appId: "Gtc702goi8qN3NKq",
    appSecret: "UymGtDB017S5f0wd",
  }),
  actions: {
    login(username: string) {
      this.username = username;
      this.isLoggedIn = true;
    },
    logout() {
      this.username = "";
      this.isLoggedIn = false;
    },
  },
});
